home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 5_programming / on / leave < prev    next >
Encoding:
Text File  |  2001-03-21  |  643 b   |  25 lines

  1. Synopsis:
  2.    on [<modes>]leave [<serial#>] [-|^]<match> { <action> }
  3.  
  4. Description:
  5.    This hook is triggered whenever a client (the user's or any other) is
  6.    observed leaving a channel (but not signing off from irc).
  7.  
  8. Parameters:
  9.    $0    the nickname of the person leaving the channel
  10.    $1    the channel left by the person
  11.  
  12. Examples:
  13.    To distinguish the client from other users leaving a channel:
  14.       on ^leave "*" {
  15.          if ( [$0] == N ) {
  16.             echo *** You have left channel $1
  17.          } {
  18.             echo *** $0 \($userhost()\) has left channel $1
  19.          }
  20.       }
  21.  
  22. See Also:
  23.    part(1); userhost(6)
  24.  
  25.